str = "123456789"
print(str)
print(str[0:-1])
print(str[0])
print(str[2:5] * 2)
print(str[2:])
print(str * 2)
list = [1, 2, 3, 4, 5676, 7]
list.append(1)
print(list)
tup = (1, 232, 3, 45)
# 集合
set = {"google", "ali", "bi", "cc", "bi"}
set2 = {"ali", "google", "cc", "waa"}
print(set)
print(set & set2)
dict = {}
dict["one"] = 2
dict["two"] = "wuzi"
dict[3] = "this"
map = {"one": "ooo", "two": 33, 3: 323}
print(dict["one"])
print(dict[3])
print(map.keys())
print(map.values())
names=[1,2,3]
gen_list=[name for name in names if name<3]
print(gen_list)
for i in range(5):
    print(i)
iter= iter(gen_list)
print(next(iter))
print(next(iter))
for i in range(len(names)):
    print(names[i])
